import request from '@/utils/request'

// 查询科研团队列表
export function listKyTeam(query) {
  return request({
    url: '/pm/kyTeam/list',
    method: 'get',
    params: query
  })
}

// 查询科研团队详细
export function getKyTeam(id) {
  return request({
    url: '/pm/kyTeam/' + id,
    method: 'get'
  })
}

// 新增科研团队
export function addKyTeam(data) {
  return request({
    url: '/pm/kyTeam',
    method: 'post',
    data: data
  })
}

// 修改科研团队
export function updateKyTeam(data) {
  return request({
    url: '/pm/kyTeam',
    method: 'put',
    data: data
  })
}

// 删除科研团队
export function delKyTeam(id) {
  return request({
    url: '/pm/kyTeam/' + id,
    method: 'delete'
  })
}
